package com.gm.commonlib.base.baseBean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

public class PageData<TData> extends BaseResp implements Serializable {

    @SerializedName("current")
    private int current;

    @SerializedName("total")
    private int totalSize;
    @SerializedName("size")
    private int totalPageSize;


    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public int getTotalSize() {
        return totalSize;
    }

    public void setTotalSize(int totalSize) {
        this.totalSize = totalSize;
    }

    public int getTotalPageSize() {
        return totalPageSize;
    }

    public void setTotalPageSize(int totalPageSize) {
        this.totalPageSize = totalPageSize;
    }

    @SerializedName(value = "records", alternate = {
            "data"
    })
    private List<TData> datas;


    public List<TData> getDatas() {
        return datas;
    }

    public void setDatas(List<TData> datas) {
        this.datas = datas;
    }






}
